package com.sinosoft.ebusiness.domain.elementManage;
// 采用工具 Hibernate Tools 3.2.4.GA (sinosoft version) 生成，请勿手工修改。

import java.util.ArrayList;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.OrderBy;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

import com.fasterxml.jackson.annotation.JsonBackReference;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.sinosoft.ebusiness.domain.elementManage.GeProductRationSection;
import com.sinosoft.ebusiness.domain.elementManage.GeRateCondition;

/**
 * POJO类GeProductRation
 */
@Entity
@Table(name = "GE_PRODUCT_RATION")
@JsonIgnoreProperties(value = {"hibernateLazyInitializer", "handler"})
public class GeProductRation implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -5424754096330851919L;

	/** 属性rationcode */
	private String rationcode;

	/** 属性geRateCondition */
	private GeRateCondition geRateCondition;

	/** 属性rationcname */
	private String rationcname;

	/** 属性rationtname */
	private String rationtname;

	/** 属性rationename */
	private String rationename;
	
	/**用于方案保费合并*/
	private String risknum;
	
	/** 属性方案内组合必投保 */
	private String flag;
	
	/**属性方案保费*/
	private String rationprm;
	
	@Column(name = "RATIONPRM")
	public String getRationprm() {
		return rationprm;
	}

	public void setRationprm(String rationprm) {
		this.rationprm = rationprm;
	}

	/** 属性geProductRationSections */
	private List<GeProductRationSection> geProductRationSections = new ArrayList<GeProductRationSection>(
			0);
	
	public String getFlag() {
		return flag;
	}

	public void setFlag(String flag) {
		this.flag = flag;
	}

	/**
	 * 类GeProductRation的默认构造方法
	 */
	public GeProductRation() {
	}

	/**
	 * 属性rationcode的getter方法
	 */
	
	@Id
	@Column(name = "RATIONCODE")
	@GenericGenerator(name = "UUIDGenerator", strategy = "uuid.hex")
	@GeneratedValue(generator = "UUIDGenerator")
	public String getRationcode() {
		return this.rationcode;
	}

	/**
	 * 属性rationcode的setter方法
	 */
	public void setRationcode(String rationcode) {
		this.rationcode = rationcode;
	}

	/**
	 * 属性geRateCondition的getter方法
	 */
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "CONDITIONID")
	@JsonBackReference
	public GeRateCondition getGeRateCondition() {
		return this.geRateCondition;
	}

	/**
	 * 属性geRateCondition的setter方法
	 */
	public void setGeRateCondition(GeRateCondition geRateCondition) {
		this.geRateCondition = geRateCondition;
	}

	/**
	 * 属性rationcname的getter方法
	 */

	@Column(name = "RATIONCNAME")
	public String getRationcname() {
		return this.rationcname;
	}

	/**
	 * 属性rationcname的setter方法
	 */
	public void setRationcname(String rationcname) {
		this.rationcname = rationcname;
	}

	/**
	 * 属性rationtname的getter方法
	 */

	@Column(name = "RATIONTNAME")
	public String getRationtname() {
		return this.rationtname;
	}

	/**
	 * 属性rationtname的setter方法
	 */
	public void setRationtname(String rationtname) {
		this.rationtname = rationtname;
	}

	/**
	 * 属性rationename的getter方法
	 */

	@Column(name = "RATIONENAME")
	public String getRationename() {
		return this.rationename;
	}

	/**
	 * 属性rationename的setter方法
	 */
	public void setRationename(String rationename) {
		this.rationename = rationename;
	}

	/**
	 * 属性geProductRationSections的getter方法
	 */
	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "geProductRation")
	@OrderBy("serialno asc")
	public List<GeProductRationSection> getGeProductRationSections() {
		return this.geProductRationSections;
	}

	/**
	 * 属性geProductRationSections的setter方法
	 */
	public void setGeProductRationSections(
			List<GeProductRationSection> geProductRationSections) {
		this.geProductRationSections = geProductRationSections;
	}
	@Column(name = "RISKNUM")
	public String getRisknum() {
		return risknum;
	}

	public void setRisknum(String risknum) {
		this.risknum = risknum;
	}

	
}
